package Lab06.Extra3;

public class RhombusFactory implements IShapeFactory {
    private static final RhombusFactory factory = new RhombusFactory();
    public static RhombusFactory getFactory(){
        return factory;
    }
    public Shape makeShape(double a, double b){
        if (a <= 0 || b <= 0) {
            return null;
        }
        return new Rhombus(a,b);
    }
}
